<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace Portal\Controller;
use Common\Controller\HomebaseController;
class ChairmanMailboxController extends HomebaseController{
	public function add() {
		$mailbox = D("ChairmanMailbox");
		if (!$mailbox->create()){
			return $this->error($mailbox->getError());
		}

		$mailbox->add();

		return $this->success("感谢您的来信，我们将尽快处理");
	}
}